// see types of prompts:
// https://github.com/enquirer/enquirer/tree/master/examples
//
module.exports = [
  {
    type: "input",
    name: "name",
    message: "What's the name of the new component?",
    validate: (name) => /^([a-zA-Z0-9]+_)*[a-zA-Z0-9]+$/.test(name),
    default: "component_name",
  },
  {
    type: "select",
    name: "category",
    message: "Where do you want to add this component?",
    choices: [
      "NEW_GROUP(rename when joint debug)",
      "basic_components",
      "container",
      "intro_components",
      "task_component",
    ],
  },
  {
    type: "confirm",
    name: "model",
    message: "do you need a new model",
  },
];
